<style>
    body{
        overflow-y: auto;
    }
    .tree-view-menu-list a{
        float: left;
        cursor:pointer;
    }
    .tree-view-menu-list li>input:first-child{
        float: left;
    }
    .tree-view-menu-list ul,li{
        clear: both;
    }
    .tree-view-menu-list a + i{
        cursor:pointer;
    }
    .tree-view-menu-list input[type=checkbox]{
        margin-top: 12px;
        margin-left: 10px;
    }
</style>
{#<ul class="breadcrumb">#}
    {#<li><i class="fa fa-home fa-lg"></i> 主页</li>#}
    {#<li>用户管理</li>#}
    {#<li>权限设置</li>#}
{#</ul>#}
<div class="row">
    <div class="col-md-10">
        <div class="smart-widget">
            <div class="smart-widget-header">
                配置权限
                {% if viewOnly is not defined %}
                    <div style="float: right;">
                        <a id="bt_check_all" class="btn btn-default btn-sm"
                           style="line-height: 10px;height: 24px;margin: -3px 10px 0 0">全选</a>
                        <a id="bt_check_invert" class="btn btn-default btn-sm"
                           style="line-height: 10px;height: 24px;margin: -3px 10px 0 0">反选</a>
                        <a id="bt_submitPower" class="btn btn-success btn-sm"
                           style="line-height: 10px;height: 24px;margin: -3px 10px 0 0">确认提交</a>
                    </div>
                {% endif %}
            </div>
            <div class="smart-widget-inner">
                <div class="smart-widget-body" style="padding-left: 20px;padding-bottom: 50px">
                    <form id="form_setPower" action="{{ url('User/setUserPower') }}" method="post">
                        {{ powerTree }}
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-2">
        <div class="smart-widget">
            <div class="smart-widget-header">
                所属用户组
            </div>
            <div class="smart-widget-inner">
                <div class="smart-widget-body" style="padding-left: 20px;padding-bottom: 50px">
                    {% if groups is defined %}
                        <table class="table table-hover">
                            <tr class="info">
                                <th>组名</th>
                                <th>类型</th>
                            </tr>
                            {% for group in groups %}
                                <tr>
                                    <td>{{ group['sName'] }}</td>
                                    <td>{{ group['iType'] }}</td>
                                </tr>
                            {% endfor %}
                        </table>
                    {% else %}
                        暂无用户组
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
</div>
